package tst.testtask.repositories;

import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@Repository
public class RequestRepository {
    private final JdbcTemplate jdbcTemplate;

    public Map<String, Object> findRecordQuery(String query, Integer Id) {
         Map<String, Object> result = jdbcTemplate.queryForMap(query, Id);
        return result;
    }

}
